﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace UI.sql
{
    public partial class frmNoAPI : DevExpress.XtraEditors.XtraForm
    {
        private int childFormNumber = 0;
        public frmNoAPI()
        {
            InitializeComponent();
        }

        private void frmNoAPI_Load(object sender, EventArgs e)
        {
            // TODO: 这行代码将数据加载到表“noAPIDataSet.tb_NotAPI”中。您可以根据需要移动或删除它。
            this.tb_NotAPITableAdapter.Fill(this.noAPIDataSet.tb_NotAPI);
            this.gridView1.IndicatorWidth = 40;//设置显示行号的列宽
            gridControl1.ContextMenuStrip = contextMenuStrip1;

        }
        //显示行号
        private void gridView1_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
        {

            {
                if (e.Info.IsRowIndicator && e.RowHandle >= 0)
                {
                    e.Info.DisplayText = (e.RowHandle + 1).ToString();
                }
            }
        }

        private void 新建ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            gridView1.AddNewRow();
        }
    }
}